import java.util.Scanner;
public class TestDemo {
    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);
        System.out.println("****欢迎使用****");
        Shape shape =new Shape();
        System.out.println("请输入矩形的长：");shape.x=scan.nextDouble();
        System.out.println("请输入矩形的宽：");shape.y=scan.nextDouble();
        System.out.println("以"+shape.x+"、"+shape.y+"为边长的矩形的周长为："+shape.C(shape.x,shape.y));
        System.out.println("以"+shape.x+"、"+shape.y+"为边长的矩形的面积为："+shape.S(shape.x,shape.y));
        scan.close();
    }
}
